package com.ccc3gc.test;

import com.ccc3gc.entity.Fruit;

public class Consumer {
    public void buyFruit(Fruit fruit) {
        System.out.println("购买了一个水果。" + fruit.getName());
    }

    public void eatFruit(Fruit fruit) {
        System.out.println("水果味道是：" + fruit.getTaste());
    }
}
